package com.park.web.controller;

import com.park.web.base.baseOperation.BaseController;
import com.park.web.core.wrapper.WrapMapper;
import com.park.web.core.wrapper.Wrapper;
import com.park.web.model.dto.basSystemManageDto;
import com.park.web.service.basSystemManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "WEB - BasSystemManageController", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@RequestMapping(value = "systemManage", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class BasSystemManageController extends BaseController {

    @Autowired
    basSystemManageService ibasSystemManageService;

    @GetMapping("/queryWithPage")
    @ApiOperation(value = "查询系统模块信息", notes = "查询系统模块信息")
    public Wrapper queryMenuList(basSystemManageDto entity) {
        var list = ibasSystemManageService.queryWithPage(entity);
        return WrapMapper.okWithoutMessage(list);
    }
}
